﻿@model Great_Eggspectations.DAL.Transaction

<div class="form-group">
    <label for="IsSale" class = "control-label col-md-2">Is Sale</label> @*todo: fix!*@
    <div class="col-md-10">
        <input data-val="true" data-val-required="The IsSale field is required." id="IsSale" name="IsSale" type="checkbox" value="true" checked="checked"> @*todo: fix!*@
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Summary, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.Summary)
        @Html.ValidationMessageFor(model => model.Summary)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Date, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.Date)
        @Html.ValidationMessageFor(model => model.Date)
    </div>
</div>

<div class="form-group">
    <label for="PartnerId" class = "control-label col-md-2">Partner</label> @*todo: fix!*@
    <div class="col-md-10">
        @Html.DropDownList("PartnerId", String.Empty)
        @Html.ValidationMessageFor(model => model.PartnerId)
    </div>
</div>

<div class="form-group">
    <label for="ProductId" class="control-label col-md-2">Product</label> @*todo: fix!*@
    <div class="col-md-10">
        @Html.DropDownList("ProductId", String.Empty)
        @Html.ValidationMessageFor(model => model.ProductId)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Quantity, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.Quantity)
        @Html.ValidationMessageFor(model => model.Quantity)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Payment, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        $@Html.EditorFor(model => model.Payment)
        @Html.ValidationMessageFor(model => model.Payment)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Details, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.TextAreaFor(model => model.Details)
    </div>
</div>